import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffContactList(params: object) {
    return request({
        url: prefix + '/staffContact/getStaffContactList',
        method: 'get',
        params
    })
}

export function createContact(data: object) {
    return request({
        url: prefix + '/staffContact/create',
        method: 'post',
        data
    })
}

export function editContact(data: object) {
    return request({
        url: prefix + '/staffContact/edit',
        method: 'post',
        data
    })
}

export function removeContact(data: object) {
    return request({
        url: prefix + '/staffContact/delete',
        method: 'post',
        data
    })
}
